package huixue.cn.com.rxapp.rx.adapter;

import android.support.annotation.Nullable;
import android.view.View;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import huixue.cn.com.rxapp.R;
import huixue.cn.com.rxapp.rx.entity.Item;

/**
 * Created by gongdongyang 2019/7/18
 * Describe:
 */
public class MainAdapter extends BaseQuickAdapter<Item, BaseViewHolder> {

    public MainAdapter(int layoutResId, @Nullable List<Item> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Item item) {
        baseViewHolder.setText(R.id.btn_title,item.getName());
    }



    /*class MainViewHolder extends BaseViewHolder{
        public MainViewHolder(View view) {
            super(view);
        }
    }*/
}
